

/* [start]	defines an event listener for the items on the tree;
			when the item is selected, its info is displayed */
private class SelectEventListener implements EventListener {
	public SelectEventListener (){}
	public void onEvent(Event event) throws UiException {
		showInfo();
	}
}
/* [end] */


void showInfo(){
	if (contents.getFirstChild() != null){
		contents.removeChild(contents.getFirstChild());
	}
	if (instance_tree.getSelectedItem().getLabel().equals("Registrar")){
		Component show_instance_form = Executions.createComponents("/WEB-INF/macros/users/active_registrar.zul", contents, null);
	}
	else if (instance_tree.getSelectedItem().getLabel().equals("College")){
		Component show_instance_form = Executions.createComponents("/WEB-INF/macros/users/active_college.zul", contents, null);
	}
	else if (instance_tree.getSelectedItem().getLabel().equals("Unit")){
		Component show_instance_form = Executions.createComponents("/WEB-INF/macros/users/active_unit.zul", contents, null);
	}
}


void showAll(String object){
	
}